/***********
 * 提示气泡
 * @example:  
 ***********/
function note_info(msg, obj, type, time){
	var sel = '#'+$(obj).attr('id');
	var color = type=='warn'?'#F58323':'#3497DB';
	layer.tips(msg, sel, {
	    tips: [1, color] //还可配置颜色
	})
    if(!time) time = 1500;
	setTimeout("layer.closeAll()",time);
}

//验证手机号
function isAdminMobil(s){
    var patrn=/^1[0-9]{10}$/;  
    if (!patrn.exec(s)) return false
    return true
}

//验证为正整数
function isAdminNumber(s){
    var patrn=/^[1-9][0-9]*$/;  
    if (!patrn.exec(s)) return false
    return true
}

//验证身份证号
function isAdminIdCode(s){
    var patrn=/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;  
    if (!patrn.exec(s)) return false
    return true
}

//验证邮箱
function isAdminEmail(s){
    var patrn=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;  
    if (!patrn.exec(s)) return false
    return true
}